package org.game.db.vo;

import com.sojoys.artifact.tools.ToolMap;
import org.constant.smallkey.GoodInfoMapSmallKey;
import org.game.db.bean.Item;

import java.util.Map;

/**
 * 皮肤
 * Created by fxf on 2018-2-27.
 */
public class SkinVO extends Item {

    public SkinVO(long id, int num, int cid, Map info, int playerId) {
        super(id, num, cid, info, playerId);
    }

    public long getHeroId(){
        return ToolMap.getLong(GoodInfoMapSmallKey.HERO_ID, getInfo());
    }

    public void setHeroId(long heroId){
        getInfo().put(GoodInfoMapSmallKey.HERO_ID, heroId);
    }
}
